package com.ruoyi.bearing.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 元器件工况管理对象 component_conditions
 * 
 * @author lyz
 * @date 2025-03-31
 */
public class ComponentConditions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工况id */
    private Long conditionId;

    /** 元器件id */
    @Excel(name = "元器件id")
    private Long typeId;

    /** 元器件类型 */
    @Excel(name = "元器件类型")
    private String typeName;

    /** 温度 */
    @Excel(name = "温度")
    private Double temperature;

    /** 湿度 */
    @Excel(name = "湿度")
    private Double humidity;

    /** 负载电压 */
    @Excel(name = "负载电压")
    private Double loadVoltage;

    /** 负载电流 */
    @Excel(name = "负载电流")
    private Double loadCurrent;

    /** 工作频率 */
    @Excel(name = "工作频率")
    private Double workFrequency;

    public void setConditionId(Long conditionId) 
    {
        this.conditionId = conditionId;
    }

    public Long getConditionId() 
    {
        return conditionId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setTemperature(Double temperature) 
    {
        this.temperature = temperature;
    }

    public Double getTemperature() 
    {
        return temperature;
    }
    public void setHumidity(Double humidity) 
    {
        this.humidity = humidity;
    }

    public Double getHumidity() 
    {
        return humidity;
    }
    public void setLoadVoltage(Double loadVoltage) 
    {
        this.loadVoltage = loadVoltage;
    }

    public Double getLoadVoltage() 
    {
        return loadVoltage;
    }
    public void setLoadCurrent(Double loadCurrent) 
    {
        this.loadCurrent = loadCurrent;
    }

    public Double getLoadCurrent() 
    {
        return loadCurrent;
    }
    public void setWorkFrequency(Double workFrequency) 
    {
        this.workFrequency = workFrequency;
    }

    public Double getWorkFrequency() 
    {
        return workFrequency;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("conditionId", getConditionId())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("temperature", getTemperature())
            .append("humidity", getHumidity())
            .append("loadVoltage", getLoadVoltage())
            .append("loadCurrent", getLoadCurrent())
            .append("workFrequency", getWorkFrequency())
            .toString();
    }
}
